#ifndef CLASSBONUSES_H
#define CLASSBONUSES_H


#include "dtwenty_global.h"


#include <data.h>


#include <QMetaType>


class DTWENTYSHARED_EXPORT ClassBonuses : public Collection
{
    Q_OBJECT

public:
    enum Field
    {
        Field_FIRST = 0,

        Field_NAME = Field_FIRST,
        Field_CATEGORY,

        Field_LAST = Field_CATEGORY
    };

    Q_INVOKABLE ClassBonuses(QObject *parent = 0) :
        Collection(QT_TR_NOOP("Class Bonuses"), parent)
    {
    }

    ClassBonuses(const ClassBonuses& other) :
        Collection(other)
    {
    }

    Q_INVOKABLE virtual void onInitialize()
    {
        setField(Field_NAME, QT_TR_NOOP("Name"));
        setField(Field_CATEGORY, QT_TR_NOOP("Category"));

        MetaItem* item = metaData()->item(Field_CATEGORY);
        item->setOptionRef("Bonus Categories");
    }
};


Q_DECLARE_METATYPE(ClassBonuses*)


#endif // CLASSBONUSES_H
